package com.groupscore.score.service;

import com.groupscore.score.service.impl.FeignUserServiceException;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "GROUPSCORE-USER", fallback = FeignUserServiceException.class)
@Component
public interface FeignUserService {

    @GetMapping("/user/findNameById/{id}")
    public Result findNameById(@PathVariable("id") String id );
}
